package cn.itcast.com.Thread.ver2;

public class test {
    public static void main(String[] args) {
        Container container = new Container();

        Producer producer = new Producer(container);
        Comsumer comsumer = new Comsumer(container);
        new Thread(producer,"做包子1").start();
        new Thread(producer,"做包子2").start();
        new Thread(comsumer,"吃包子1").start();
        new Thread(comsumer,"吃包子2").start();
    }
}